import React from "react";
import { StringOrNull } from "./Types";

interface IProps {
  value: StringOrNull;
  onClick: Function;
}

export default function Square(props: IProps) {
  return (
    <button className="square" onClick={() => props.onClick()}>
      {props.value}
    </button>
  );
}
